package work.huangxin.share.domain.sechand;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import java.util.Date;

/**
 * @Author: 钟声浩
 * @Date: 2023-04-15 20:25
 * @Desc:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sechand_browse_history")
public class SechandBrowseHistory {

    /**
     * 编号
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 用户id
     */
    @Column(name = "user_id")
    private Long userId;

    /**
     * 商品发布人
     */
    @Column(name = "username")
    private String username;

    /**
     * 商品编号
     */
    @Column(name = "goods_id")
    private Long goodsId;

    /**
     * 商品名称
     */
    @Column(name = "goods_name")
    private String goodsName;

    /**
     * 商品分类
     */
    @Column(name = "goods_type")
    private int goodsType;

    /**
     * 商品关键字
     */
    @Column(name = "goods_key_word")
    private String goodsKeyWord;

    /**
     * 联系方式
     */
    @Column(name = "contact")
    private String contact;

    /**
     * 商品描述
     */
    @Column(name = "goods_description")
    private String goodsDescription;

    /**
     * 商品图片url,使用逗号分割
     */
    @Column(name = "goods_photos")
    private String goodsPhotos;

    /**
     * 商品价格
     */
    @Column(name = "price")
    private Double price;

    /**
     * 是否被买(0:否 1:是)
     */
    @Column(name = "is_buy")
    private Integer isBuy;

    /**
     * 浏览历史的时间
     */
    @Column(name = "browse_time")
    private Date browseTime;

    /**
     * 是否删除
     */
    @Column(name = "deleted")
    private Integer deleted;
}
